//
//  BindWiFITableViewCell.m
//  Router
//
//  Created by teki on 15/11/3.
//  Copyright © 2015年 dc. All rights reserved.
//

#import "BindWiFITableViewCell.h"

@interface BindWiFITableViewCell ()

@property (nonatomic, copy) BindButtonClick block;
@end


@implementation BindWiFITableViewCell

- (void)awakeFromNib {
    self.bindButton.backgroundColor = NavgationBarBackgroundColor;
    self.bindButton.layer.cornerRadius= 5.0f;
    self.bindButton.layer.masksToBounds = YES;
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)bindButtonPressed:(id)sender {
    if (self.block)
    {
        self.block();
    }
}


#pragma mark -
#pragma mark   setters and getters

- (void)setBindButtonClick:(BindButtonClick)block
{
    _block = block;
}
@end
